﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class baseAnction : BaseUi {
    bool _hasInit = false;
    string recycleType;
    Vector3 initScale;
    protected toolOne toolOne;
    public virtual void init (Transform parent, toolOne toolOne, string recycleType) {
        if (!_hasInit) {
            _hasInit = true;
            this.recycleType = recycleType;
            initScale = transform.localScale;
        }
        transform.SetParent (parent, false);
        transform.localScale = initScale;
        this.toolOne = toolOne;
    }
    public virtual void recycling () {
        Global.GameProxy.ControlBox.pushPrefabByName (recycleType, gameObject);
    }
}